@import url(./common.less);
@import url(./public.less);

.player-mask {
  display: none;
  &:extend(.full-mask);
  background: rgba(0,0,0,.6);
  position: fixed;
  z-index: 2;
}

.player-container {
  position: relative;
  margin: 100px auto 0;
  width: 768px;
  font-size: 0px;

  video {
    width: 100%;
    min-height: 400px;
    background-color: darken(@dark, 10%);
  }

  .close-btn {
    position: absolute;
    top: 0;
    right: -30px;
    font-size: 20px;
    color: @white;
    cursor: pointer;
  }

  .video-controls {
    position: relative;
    width: 100%;
    height: 40px;
    background-color: @dark;
    font-size: 14px;

    .progress-bar {
      position: absolute;
      top: -3px;
      left: 0;
      height: 3px;
      width: 100%;
      background-color: transparent;
      .buffer-percent {
        height: 100%;
        background-color: @grey;
      }
      .playback-percent {
        position: relative;
        top: -100%;
        height: 100%;
        background: @green;
      }
    }
    .toggle-playback, .volume, .time, .toggle-fullscreen-button {
      display: inline-block;
      margin-left: 10px;
      font-size: 0;
      color: @white;
      overflow: hidden;
      .no_selection();

      span {
        font-size: 30px;
        line-height: 40px;
        cursor: pointer;
        &:extend(.offset-icon);
      }
    }
    .volume {
      margin-left: 20px;
      span {
        float: left;
      }
      input {
        float: left;
        margin-left: 5px;
        width: 100px;
        margin-top: 18px;
      }

      input[type=range].volume-slider {
        -webkit-appearance: none;
      }
      input[type=range].volume-slider:focus {
        outline: none;
      }
      input[type=range].volume-slider::-webkit-slider-runnable-track {
        width: 100%;
        height: 4px;
        cursor: pointer;
        box-shadow: 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px rgba(13, 13, 13, 0);
        background: @white;
        border-radius: 2px;
        border: 0px solid rgba(0, 0, 0, 0);
      }
      input[type=range].volume-slider::-webkit-slider-thumb {
        box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
        border: 1px solid rgba(0, 0, 0, 0);
        height: 12px;
        width: 12px;
        border-radius: 6px;
        background: @green;
        cursor: pointer;
        -webkit-appearance: none;
        margin-top: -4px;
      }
      input[type=range].volume-slider:focus::-webkit-slider-runnable-track {
        //background: @green;
      }
      input[type=range].volume-slider::-moz-range-track {
        width: 100%;
        height: 10px;
        cursor: pointer;
        box-shadow: 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px rgba(13, 13, 13, 0);
        background: @green;
        border-radius: 0px;
        border: 0px solid rgba(0, 0, 0, 0);
      }
      input[type=range].volume-slider::-moz-range-thumb {
        box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
        border: 1px solid rgba(0, 0, 0, 0);
        height: 8px;
        width: 5px;
        border-radius: 0px;
        background: #ffffff;
        cursor: pointer;
      }
      input[type=range].volume-slider::-ms-track {
        width: 100%;
        height: 10px;
        cursor: pointer;
        background: transparent;
        border-color: transparent;
        color: transparent;
      }
      input[type=range].volume-slider::-ms-fill-lower {
        background: @green;
        border: 0px solid rgba(0, 0, 0, 0);
        border-radius: 0px;
        box-shadow: 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px rgba(13, 13, 13, 0);
      }
      input[type=range].volume-slider::-ms-fill-upper {
        background: @green;
        border: 0px solid rgba(0, 0, 0, 0);
        border-radius: 0px;
        box-shadow: 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px rgba(13, 13, 13, 0);
      }
      input[type=range].volume-slider::-ms-thumb {
        box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
        border: 1px solid rgba(0, 0, 0, 0);
        width: 5px;
        border-radius: 0px;
        background: #ffffff;
        cursor: pointer;
        height: 8px;
      }
      input[type=range].volume-slider:focus::-ms-fill-lower {
        background: @green;
      }
      input[type=range].volume-slider:focus::-ms-fill-upper {
        background: @green;
      }
    }
    .time {
      span {
        font-size: 14px;
      }
    }

    .toggle-fullscreen-button {
      float: right;
      span {
        font-size: 20px;
        margin-right: 10px;
      }
    }
  }
}

